import 'package:flutter/material.dart';
import 'package:hello_flutter/base/index.dart';

class DecoratedBoxWidget extends BasePage {
  const DecoratedBoxWidget({super.key});

  @override
  String getPageTitle() => 'DecoratedBox';

  @override
  Widget buildBody(BuildContext context) => Center(
        child: DecoratedBox(
          decoration: BoxDecoration(
              gradient:
                  LinearGradient(colors: [Colors.red, Colors.orange.shade700]),
              borderRadius: BorderRadius.circular(3),
              boxShadow: const [
                BoxShadow(
                    color: Colors.black54, offset: Offset(2, 2), blurRadius: 4),
              ]),
          child: const Padding(
            padding: EdgeInsets.symmetric(horizontal: 80, vertical: 18),
            child: Text(
              'Login',
              style: TextStyle(color: Colors.white),
            ),
          ),
        ),
      );
}
